<?php

namespace SisGG\FinalBundle\Entity;
use Symfony\Component\Validator\Constraint as Assert;
use SisGG\FinalBundle\Entity\Cuit;
use SisGG\FinalBundle\Entity\Direccion ;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="proveedor")
 */
class Proveedor {

    /**
     * @ORM\Column(type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private  $id;
    /**
     * @ORM\Column(type="string")
     */
    private $razonSocial;
    /**
     * @ORM\OneToOne(targetEntity="Direccion")
     * @ORM\JoinColumn(name="direccion_id", referencedColumnName="id")
     */
    private $direccion;
     /**
     * @ORM\OneToOne(targetEntity="Telefono")
     * @ORM\JoinColumn(name="tel1_id", referencedColumnName="id")
     */
    private $tel1;
    /**
     * @ORM\OneToOne(targetEntity="Telefono")
     * @ORM\JoinColumn(name="tel2_id", referencedColumnName="id")
     */
    private $tel2;
    /**
     * @ORM\OneToOne(targetEntity="Cuit")
     * @ORM\JoinColumn(name="cuit_id", referencedColumnName="id")
     */
    private $cuit;
    /**
     * @ORM\Column(type="string", length=255)
     */
    private $email;  
    /**
     * @ORM\Column(type="integer")
     */    
    private $nroBco;
    /**
     *
     * @ORM\ManyToOne (targetEntity="Empresa", inversedBy="proveedores")
     */
    
    private $empresa;
    
    
    


    public function serialize() {
        return serialize($this->id);
    }

    public function unserialize($data) {
        $this->id = unserialize($data);
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set razonSocial
     *
     * @param string $razonSocial
     * @return Proveedor
     */
    public function setRazonSocial($razonSocial)
    {
        $this->razonSocial = $razonSocial;
    
        return $this;
    }

    /**
     * Get razonSocial
     *
     * @return string 
     */
    public function getRazonSocial()
    {
        return $this->razonSocial;
    }

    /**
     * Set cuit
     *
     * @param SisGG\FinalBundle\Entity\Cuit $cuit
     * @return Proveedor
     */
    public function setCuit($cuit)
    {
        $this->cuit = $cuit;
    
        return $this;
    }

    /**
     * Get cuit
     *
     * @return SisGG\FinalBundle\Entity\Cuit 
     */
    public function getCuit()
    {
        return $this->cuit;
    }

    /**
     * Set email
     *
     * @param string $email
     * @return Proveedor
     */
    public function setEmail($email)
    {
        $this->email = $email;
    
        return $this;
    }

    /**
     * Get email
     *
     * @return string 
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set nroBco
     *
     * @param integer $nroBco
     * @return Proveedor
     */
    public function setNroBco($nroBco)
    {
        $this->nroBco = $nroBco;
    
        return $this;
    }

    /**
     * Get nroBco
     *
     * @return integer 
     */
    public function getNroBco()
    {
        return $this->nroBco;
    }

    /**
     * Set direccion
     *
     * @param SisGG\FinalBundle\Entity\Direccion $direccion
     * @return Proveedor
     */
    public function setDireccion(\SisGG\FinalBundle\Entity\Direccion $direccion = null)
    {
        $this->direccion = $direccion;
    
        return $this;
    }

    /**
     * Get direccion
     *
     * @return SisGG\FinalBundle\Entity\Direccion 
     */
    public function getDireccion()
    {
        return $this->direccion;
    }

    /**
     * Set tel1
     *
     * @param SisGG\FinalBundle\Entity\Telefono $tel1
     * @return Proveedor
     */
    public function setTel1(\SisGG\FinalBundle\Entity\Telefono $tel1 = null)
    {
        $this->tel1 = $tel1;
    
        return $this;
    }

    /**
     * Get tel1
     *
     * @return SisGG\FinalBundle\Entity\Telefono 
     */
    public function getTel1()
    {
        return $this->tel1;
    }

    /**
     * Set tel2
     *
     * @param SisGG\FinalBundle\Entity\Telefono $tel2
     * @return Proveedor
     */
    public function setTel2(\SisGG\FinalBundle\Entity\Telefono $tel2 = null)
    {
        $this->tel2 = $tel2;
    
        return $this;
    }

    /**
     * Get tel2
     *
     * @return SisGG\FinalBundle\Entity\Telefono 
     */
    public function getTel2()
    {
        return $this->tel2;
    }

    /**
     * Set empresa
     *
     * @param SisGG\FinalBundle\Entity\Empresa $empresa
     * @return Proveedor
     */
    public function setEmpresa(\SisGG\FinalBundle\Entity\Empresa $empresa = null)
    {
        $this->empresa = $empresa;
    
        return $this;
    }

    /**
     * Get empresa
     *
     * @return SisGG\FinalBundle\Entity\Empresa 
     */
    public function getEmpresa()
    {
        return $this->empresa;
    }
}